// 用来显示班级人员信息的Grid
var personalSpaceClassesMemberGrid = Ext.create('Ext.grid.Panel', {
    store: personalSpaceClassesMemberGridStore,
    columns: [new Ext.grid.RowNumberer(), // 显示行号
        {
            text: '昵称',
            flex: 1,
            dataIndex: 'name',
            sortable: false
        }, {
            text: '所属小组',
            dataIndex: 'groupName',
            flex: 1,
            sortable: false
        }
    ]
});

//用于显示组人员信息的grid表单
var personalSpaceGroupMemberGrid = Ext.create('Ext.grid.Panel', {
    store: personalSpaceGroupMemberGridStore,
    columns: [new Ext.grid.RowNumberer(), // 显示行号
        {
            text: '昵称',
            dataIndex: 'userName',
            flex: 1,
            sortable: false
        }, {
            text: '身份',
            dataIndex: 'isLeader',
            sortable: false,
            renderer: function (v, m, r) {
                return v == 1 ? '组长' : '组员';
            }
        }
    ]
});

//用来显示成绩信息的Grid
var personalSpaceGradeGrid = Ext.create('Ext.grid.Panel', {
    store: personalSpaceGradeStore,
    columns: [
        {
            text: '评分块',
            width: 100,
            dataIndex: 'part',
            flex: 1,
            sortable: false
        }, {
            text: '分数',
            dataIndex: 'grade',
            sortable: false
        }, {
            text: '占比',
            dataIndex: 'percent',
            sortable: false,
            renderer: function (v, m, r) {
                return v + '%';
            }
        }
    ]
});